<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			function del(){
				var $uid = uid.value;
				//console.log($uname,$upwd);
				
				var xhr = new XMLHttpRequest();
				
				xhr.onreadystatechange = function (){
					if(xhr.readyState == 4 && xhr.status == 200){
						var r = xhr.responseText;
						if(r==1){
							d1.innerHTML = "用户删除成功";
						}else{							
							d1.innerHTML = "用户删除失败";
						}
					}
				}
				
				xhr.open('delete',`/pro/v1/del/${$uid}`,true);
				xhr.send();
			}
				
		</script>
		
		
		
	</head>
	<body>
		删除编号:<input type='txt' id='uid'><br>
		<button onclick="del()">查询</button><br>
		<div id="d1"></div>
	</body>
</html>
